﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Twodi.Arguments
{
    public class FollowEventArgs : EventArgs
    {
        private Vector2 direction;

        private float angle;

        public FollowEventArgs(Vector2 direction)
        {
            this.Angle = (float)Math.Atan2(direction.X, -direction.Y);
            this.Direction = direction;
        }

        public Vector2 Direction
        {
            get { return direction; }
            set { direction = value; }
        }

        public float Angle
        {
            get { return angle; }
            set { angle = value; }
        }


    }
}
